<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
	</head>

	<body>
		<ul class="mui-table-view">
			<li class="mui-table-view-cell">
				<a id="56" class="mui-navigate-right">
					Item 1
				</a>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right">
					Item 2
				</a>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right">
					Item 3
				</a>
			</li>
		</ul>
		<a id="testBtn">hello</a>

		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init({
				preloadPages: [{
					url: 'detail.html',
					id: 'detail.html'
				}]
			});
			
			var obj1 = mui("#testBtn");
			mui.toast(obj1[0].innerText);
			
			document.getElementById('testBtn').addEventListener('tap',function () {
			  mui.toast("tap1111");      
			});
			
			mui('#testBtn').on('tap',function(){
			  mui.toast("tap");
			});

			var detailPage = null;
			//添加列表项的点击事件
			mui('.mui-table-view').on('tap', 'a', function(e) {
				mui.toast("tap");
				//打开详情页面          
				mui.openWindow({
					id: 'detail.html'
					show: {
						autoShow: true
					}
				});
			});
		</script>
	</body>

</html>